﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    
    class Calculate
    {
        protected int A { get; set; }
        protected int B { get; set; }

        public void Receive() 
        {
            Console.WriteLine("请输入第一个数!");
            A = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入第二个数!");
            B = int.Parse(Console.ReadLine());

        }
        public virtual void Cal() 
        {
            
        }  

    }
}
